/**
 * 与维修相关的后端接口调用
 */
import instance from '@/utils/http'
import { addAssetRepair,updateAssetRepair,getAssetRepairList } from '@/api/url'

 // 用户提交维修申请        
export const addAssetRepairAPI = (data) => {
    return instance({
        url: addAssetRepair,
        method: 'post',
        data: data
    })
}

// 处理员查看维修申请          
export const updateAssetRepairAPI = (data) => {
    return instance({
        url: updateAssetRepair,
        method: 'put',
        data: data
    })
}
//查询维修表       
export const getAssetRepairListAPI = (data) => {
    return instance({
        url: getAssetRepairList,
        method: 'get',
        data: data
    })
}

